#pragma once

#include "Texture.h"

namespace a2d
{
//------------------------------------------------------------------

	class AV2D_EXPORT Sprite
	{
	public:
		bool Create(const char *FileName);
		void SetSize(float w, float h);
		void Draw(float x, float y);
		void Draw(float x, float y, float z);
		void SetRect(float x1, float y1, float x2, float y2);
		void SetFlip(bool hor = false, bool ver = false);
		void Destroy();

	private:
		Texture m_tex;
		glm::vec2 m_size;
		glm::vec4 m_rect;
		glm::bvec2 m_flip;
	};

//------------------------------------------------------------------
} // namespace a2d
